package com.sheledon.demo.demo2.controller;

import com.sheledon.demo.demo2.service.StudentService;
import com.sheledon.flyCat.annotation.ioc.Autowired;
import com.sheledon.flyCat.annotation.springmvc.GetMapping;
import com.sheledon.flyCat.annotation.springmvc.RequestParam;
import com.sheledon.flyCat.annotation.springmvc.RestController;

@RestController("/student")
public class StudentController {
    @Autowired
    private StudentService studentService;

    @GetMapping
    public void startExam(@RequestParam(name = "id") int id){
        studentService.exam(id);
    }
}
